package com.blog1.service;

import com.blog1.pojo.request.AddBlogInfo;
import com.blog1.pojo.request.UpdateBlogRequest;
import com.blog1.pojo.response.BlogInfoListResult;
import com.blog1.pojo.response.BlogInfoResult;

import java.util.List;

public interface BlogInfoService {

    List<BlogInfoListResult> getList();

    BlogInfoResult getBlogDetail(int id);

    boolean addBlog(AddBlogInfo addBlogInfo);

    Boolean updateBlog(UpdateBlogRequest updateBlogRequest);

    Boolean deleteBlog(Integer blogId);
}
